def roman(number: int) -> str:
    roman_dict = {
    1: 'I',
    4: 'IV',
    5: 'V',
    9: 'IX',
    10: 'X',
    40: 'XL',
    50: 'L',
    90: 'XC',
    100: 'C',
    400: 'CD',
    500: 'D',
    900: 'CM',
    1000: 'M'
}
    
    final = ''
    while number:
        tempkey = 1
        for key in roman_dict.keys():
            count = number // key
            if count > 0 and key >= tempkey:
                tempkey = key
                tempcount = count
        final += roman_dict[tempkey] * tempcount
        number = number % tempkey
    return final

